<?php


namespace App\Http\Requests\Platform;

use App\Http\Requests\BaseRequest;

class AuthGroupAccessRequest extends BaseRequest
{
    public $scenes=[
        'add'=>['admin_id','group_ids'],
        'edit'=>['id','title'],
    ];

    public function rules()
    {
        return [
            'admin_id' => 'required|integer',
            'group_ids' => 'required',
        ];
    }

    public function messages()
    {
        return [
            'admin_id.required' => '管理员id不能为空',
            'admin_id.integer' => '管理员id必须为整数',
            'group_ids.required' => '权限组不能为空',
        ];
    }






}
